package org.wk.news.domain;

/**
 * @ClassName NewsManage
 * @Description
 * @Author ZhaoPing'an
 * @Date 2018/6/5 14:08
 */

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;

/**
 * @Description 资讯管理
 * @Param
 * @author ZhaoPing'an
 * @Date 2018/6/5 14:10
 */
@Entity(name="org.wk.news.domain.NewsManage")
@Table(name="j_news_manage")
public class NewsManage extends BaseEntity {
    /**
     * @Fields serialVersionUID: long
     * @Desc TODO:
     */
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 32)
    @GeneratedValue(generator="system-uuid")
    @GenericGenerator(name="system-uuid",strategy = "uuid")
    private String id;

    // 标题
    @Column
    private String newsTitle;
    // 资讯内容
    @Lob
    @Basic(fetch = FetchType.LAZY)
    @Column(columnDefinition="TEXT")
    private String newsContent;
    // 资讯分类名称
    @Column
    private String classifiedsName;
    // 资讯分类ID
    @Column
    private String classifiedId;
    // 资讯类型值
    @Column
    private String typeCode;
    // 类型名称
    @Column
    private String typeName;
    // 封面
    @Column
    private String newsCover;
    // 视频地址
    @Column
    private String videoUrl;
    // 简介
    @Column
    private String profile;
    // 阅读量
    @Column(columnDefinition="int default 0")
    private int pv=0;


    @Column(columnDefinition="int default 0")
    private int praiseNum=0;

    public String getId() {
        return id;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getClassifiedsName() {
        return classifiedsName;
    }

    public void setClassifiedsName(String classifiedsName) {
        this.classifiedsName = classifiedsName;
    }

    public String getClassifiedId() {
        return classifiedId;
    }

    public void setClassifiedId(String classifiedId) {
        this.classifiedId = classifiedId;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public String getTypeName() {
        return typeName;
    }

    public String getNewsCover() {
        return newsCover;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public String getProfile() {
        return profile;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setNewsCover(String newsCover) {
        this.newsCover = newsCover;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }


    public int getPv() {
        return pv;
    }

    public void setPv(int pv) {
        this.pv = pv;
    }

    public int getPraiseNum() {
        return praiseNum;
    }

    public void setPraiseNum(int praiseNum) {
        this.praiseNum = praiseNum;
    }
}
